package free_practice.work;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/22 14:05
 * @description
 */
public class Teacher {
    private String name;
    private String sex;
    private int age;
    private String subjects;

    public Teacher() {
    }

    public Teacher(String name, String sex, int age, String subjects) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.subjects = subjects;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSubjects() {
        return subjects;
    }

    public void setSubjects(String subjects) {
        this.subjects = subjects;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "姓名'" + name + '\'' +
                ", 性别'" + sex + '\'' +
                ", 年龄" + age +
                ", 教的科目'" + subjects + '\'' +
                '}';
    }
}
